:root {
    --side-bar-bg-color: #fafafa;
    --control-text-color: #777;
}
/* 此主题由github主题魔改而来 */
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);

/* open-sans-regular - latin-ext_latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: normal;
    src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./youthlql/open-sans-v17-latin-ext_latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* open-sans-italic - latin-ext_latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: normal;
    src: local('Open Sans Italic'), local('OpenSans-Italic'), url('./youthlql/open-sans-v17-latin-ext_latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* open-sans-700 - latin-ext_latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: bold;
    src: local('Open Sans Bold'), local('OpenSans-Bold'), url('./youthlql/open-sans-v17-latin-ext_latin-700.woff2') format('woff2'); 
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* open-sans-700italic - latin-ext_latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: bold;
    src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url('./youthlql/open-sans-v17-latin-ext_latin-700italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }

/* 侧边栏、右键菜单、底部栏、引用块、代码块中文 */
@font-face {
  font-family: "霞鹜文楷";
  src: url("./youthlql/LXGWWenKai-Regular.woff2");
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Open Sans","Clear Sans", "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif;
    color: rgb(51, 51, 51);
    line-height: 1.6;
    background-color: #f9f5ed; /*魔改：背景色设置*/
}

#write {
    max-width: 860px;
  	margin: 0 auto;
  	padding: 30px;
    padding-bottom: 100px;
}

@media only screen and (min-width: 1400px) {
	#write {
		max-width: 1024px;
	}
}

@media only screen and (min-width: 1800px) {
	#write {
		max-width: 1200px;
	}
}

#write > ul:first-child,
#write > ol:first-child{
    margin-top: 30px;
}

a {
    color: #4183C4;
}

/*@media print {
    .typora-export h1,
    .typora-export h2 {
        border-bottom: none;
        padding-bottom: initial;
    }

    .typora-export h1::after,
    .typora-export h2::after {
        content: "";
        display: block;
        height: 100px;
        margin-top: -96px;
        border-top: 1px solid #eee;
    }
}*/

p,
blockquote,
ul,
ol,
dl,
table{
    margin: 0.8em 0;
}
li>ol,
li>ul {
    margin: 0 0;
}
hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: #e7e7e7;
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
}

li p.first {
    display: inline-block;
}
ul,
ol {
    padding-left: 30px;
}
ul:first-child,
ol:first-child {
    margin-top: 0;
}
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}
blockquote {
    border-left: 4px solid #dfe2e5;
    padding: 0 15px;
    color: #777777;
}
blockquote blockquote {
    padding-right: 0;
}
table {
    padding: 0;
    word-break: initial;
}
table tr {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 0;
}
table tr:nth-child(2n),
thead {
    background-color: #f8f8f8;
}
table th {
    font-weight: bold;
    border: 1px solid #dfe2e5;
    border-bottom: 0;
    margin: 0;
    padding: 6px 13px;
}
table td {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 6px 13px;
}
table th:first-child,
table td:first-child {
    margin-top: 0;
}
table th:last-child,
table td:last-child {
    margin-bottom: 0;
}


.md-task-list-item > input {
  margin-left: -1.3em;
}

@media print {
    html {
        font-size: 13px;
    }
    table,
    pre {
        page-break-inside: avoid;
    }
    pre {
        word-wrap: break-word;
    }
}

.md-fences {
	background-color: #f8f8f8;
}
#write pre.md-meta-block {
	padding: 1rem;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 3px;
    color: #777777;
    margin-top: 0 !important;
}

.mathjax-block>.code-tooltip {
	bottom: .375rem;
}

.md-mathjax-midline {
    background: #fafafa;
}

#write>h3.md-focus:before{
	left: -1.5625rem;
	top: .375rem;
}
#write>h4.md-focus:before{
	left: -1.5625rem;
	top: .285714286rem;
}
#write>h5.md-focus:before{
	left: -1.5625rem;
	top: .285714286rem;
}
#write>h6.md-focus:before{
	left: -1.5625rem;
	top: .285714286rem;
}
.md-image>.md-meta {
    /*border: 1px solid #ddd;*/
    border-radius: 3px;
    padding: 2px 0px 0px 4px;
    font-size: 0.9em;
    color: inherit;
}

.md-tag {
    color: #a7a7a7;
    opacity: 1;
}

.md-toc { 
    margin-top:20px;
    padding-bottom:20px;
}

.sidebar-tabs {
    border-bottom: none;
}

#typora-quick-open {
    border: 1px solid #ddd;
    background-color: #f8f8f8;
}

#typora-quick-open-item {
    background-color: #FAFAFA;
    border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
    border-style: solid;
    border-width: 1px;
}

/** focus mode */
.on-focus-mode blockquote {
    border-left-color: rgba(85, 85, 85, 0.12);
}

header, .context-menu, .megamenu-content, footer{
    font-family: "Segoe UI", "Arial", sans-serif;
}

.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state{
    visibility: visible;
}

.mac-seamless-mode #typora-sidebar {
    background-color: #fafafa;
    background-color: var(--side-bar-bg-color);
}

.md-lang {
    color: #b4654d;
}

/*.html-for-mac {
    --item-hover-bg-color: #E6F0FE;
}*/

#md-notification .btn {
    border: 0;
}

.dropdown-menu .divider {
    border-color: #e5e5e5;
    opacity: 0.4;
}

.ty-preferences .window-content {
    background-color: #fafafa;
}

.ty-preferences .nav-group-item.active {
    color: white;
    background: #999;
}

.menu-item-container a.menu-style-btn {
    background-color: #f5f8fa;
    background-image: linear-gradient( 180deg , hsla(0, 0%, 100%, 0.8), hsla(0, 0%, 100%, 0)); 
}


/* 代码块主题 */
.md-fences:before {
    content: ' ';
    display: block;
    width: 100%;
    background-size: 40px;
    background-repeat: no-repeat;
    background-color: #282c34;
    margin-bottom: -7px;
    border-radius: 5px;
    background-position: 10px 10px;
  }
  .cm-s-inner.CodeMirror {
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #292d3e;
    color: #a6accd;
    font-family: Consolas;
    border-radius: 4px;
  }
  .CodeMirror-lines {
    padding-left: 4px;
  }
  .cm-s-inner .cm-keyword {
    color: #c792ea;
  }
  .cm-s-inner .cm-operator {
    color: #89ddff;
  }
  .cm-s-inner .cm-variable-2 {
    color: #eeffff;
  }
  .cm-s-inner .cm-variable-3,
  .cm-s-inner .cm-type {
    color: #f07178;
  }
  .cm-s-inner .cm-builtin {
    color: #ffcb6b;
  }
  .cm-s-inner .cm-atom {
    color: #f78c6c;
  }
  .cm-s-inner .cm-number {
    color: #ff5370;
  }
  .cm-s-inner .cm-def {
    color: #82aaff;
  }
  .cm-s-inner .cm-string {
    color: #c3e88d;
  }
  .cm-s-inner .cm-string-2 {
    color: #f07178;
  }
  .cm-s-inner .cm-comment {
    color: #676e95;
  }
  .cm-s-inner .cm-variable {
    color: #f07178;
  }
  .cm-s-inner .cm-tag {
    color: #ff5370;
  }
  .cm-s-inner .cm-meta {
    color: #ffcb6b;
  }
  .cm-s-inner .cm-attribute {
    color: #c792ea;
  }
  .cm-s-inner .cm-property {
    color: #c792ea;
  }
  .cm-s-inner .cm-qualifier {
    color: #decb6b;
  }
  .cm-s-inner .cm-variable-3,
  .cm-s-inner .cm-type {
    color: #decb6b;
  }
  .cm-s-inner .cm-error {
    color: rgba(255, 255, 255, 1);
    background-color: #ff5370;
  }
  .cm-s-inner .CodeMirror-matchingbracket {
    text-decoration: underline;
    color: white !important;
  }
  .CodeMirror div.CodeMirror-cursor {
    border-left: 1px solid rgb(239, 112, 96);
    z-index: 3;
  }


  /*标题*/
h2,
h3,
h4,
h5,
h6,
#write h1 a,
#write h2 a,
#write h3 a,
#write h4 a,
#write h5 a,
#write h6 a {
  position: relative;
  margin-top: 1em;
  margin-bottom: 1em;
  font-weight: bolder !important;
  line-height: 1.3;
  cursor: text;
  letter-spacing: 2px;
  color: #81b29a !important;
}

/* 不建议使用五级、六级标题，所以颜色调浅 */
#write h6 a,
h6 {
  color: rgb(129, 178, 154, .5) !important;
}

#write h5 a,
h5 {
  color: rgb(129, 178, 154, .7) !important;
}

/* 标题为网址时，样式修改 */
h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
  text-decoration: none !important;
  border: none !important;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  text-decoration: none !important;
  border: none !important;
  color: inherit !important;
}


h1 tt,
h1 code,
h2 tt,
h2 code,
h3 tt,
h3 code,
h4 tt,
h4 code,
h5 tt,
h5 code,
h6 tt,
h6 code {
  font-size: inherit !important;
}

h2 a,
h3 a {
  color: #34495e;
}

#write h1,
h1 a {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  line-height: 1.3;
  text-align: center;
  /* 文字渐变 */
  /* background-image: linear-gradient(to right, #CBBACC 0%, #2580B3 100%);
  background-image: linear-gradient(-20deg, #fc6076 0%, #ff9a44 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent; */
  color: #fd7c5e;
}

h2 {
  font-size: 1.8rem;
  margin: 35px 0 15px;
  padding-bottom: 10px;
  /* color:#22223b; */
}

h3 {
  font-size: 1.6rem;
  margin: 20px 0 0px;
  padding-bottom: 0;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1.1rem;
}

/* 一级标题样式 */
/* h1::before {
  content: '「 ' !important;
  color: #3e89df;
  font-weight: bolder;
  font-size: 1em;
  position: relative;
  bottom: 9px;
  left: 12px;
}

h1::after {
  content: ' 」' !important;
  color: #3e89df;
  font-weight: bolder;
  font-size: 1em;
  position: relative;
  top: 7px;
  right: 12px;
} */

/* 二级标题样式一 */
#write h2 span {
  font-weight: bold;
  /* background: #e07a5f; */
  color: #ffffff;
  padding: 0px 5px 0px;
  border-radius: 4px;
  background-image: linear-gradient(to bottom, #74c69d, #b7e4c7);
}

#write h2:after {
  display: inline-block;
  content: "";
  position: absolute;
  bottom: 0px;
  top: auto;
  background-image: linear-gradient(to right, #c1dfc4 0%, #deecdd 100%);
  left: 0;
  right: 0;
  height: 4px;
  width: 100%;
}

/* 二级标题样式二 */
/* #write h2 span {
  display: inline-block;
  font-weight: bold;
  background: rgb(239, 112, 96);
  color: #ffffff;
  padding: 3px 10px 1px;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
  margin-right: 3px;
}

#write h2:after {
  display: inline-block;
  content: "";
  vertical-align: bottom;
  border-bottom: 42px solid #efebe9;
  border-right: 20px solid transparent;
}

h2 {
  border-bottom: 2.5px solid #ef7060;
  padding-bottom: 0 !important;
}

#write h2,
#write h2::before {
  color: #fff;
} */

#write h2 a,
#write h2 a:hover {
  border: none;
}

/* ———————————————————————————————————————————————————标题等级提示—————————————————————————————————————————————————————*/

#write h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  vertical-align: bottom;
  position: absolute;
  right: calc(100% + 1px);
  bottom: 0;
  color: #e07a5f !important;
  font-weight: bolder !important;
  border: 0;
  border-radius: 0;
  left: auto;
  float: left;
  padding: 0;
  font-size: 10px !important;
}

#write h2::before {
  content: '#2';
  top: -10px;
}

h3::before,
h3.md-focus:before {
  content: '#3';
  top: -5px;
}

h4::before,
h4.md-focus:before {
  content: '#4';
  top: -5px;
}

h5::before,
h5.md-focus:before {
  content: '#5';
  top: -5px;
}

h6::before,
h6.md-focus:before {
  content: '#6';
  top: -5px;
}

h3.md-focus:before,
h4.md-focus:before,
h5.md-focus:before,
h6.md-focus:before {
  line-height: 1.3;
  border: none;
  margin: 0;
  padding: 0;
  left: auto;
}


/*图片*/
#write img {
    display: block;
    margin: 0 auto;
    width: 85%;
    max-width: 100%;
    border-radius: 5px;
    box-shadow:0px 4px 12px #84A1A8;
    border: 0px;
  }

/*行内代码*/
#write p code,
#write span code,
#write li code {
  word-wrap: break-word;
  padding: 1.5px 5px;
  border-radius: 4px;
  margin: 0 2px;
  color:  rgb(238, 130, 42);
  background-color: rgba(27,31,35,.05);
  font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;
  word-break: break-all;
  font-size: 19px;
  border-radius: 0.2em;
}

/* —————————————————————————————————————————————引用块基础设置——————————————————————————————————————— */

/*引用基础设置*/
blockquote {
  border-left: 0.5em solid #35455b;
  border-color: #CC3333;
  padding: 10px 10px;
  color: #0099CC;
  background-color: rgb(236, 244, 249, .6);
  border-radius: 5px;
  font-size: 18px;
  font-family: "霞鹜文楷";
}

blockquote p {
  margin: .6em 0;
}
